package com.kh.springwebSocket.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by crossice on 2017/5/13.
 */

@Configuration
public class WebConfig  extends WebMvcConfigurerAdapter{



    @Override
    public void addViewControllers(ViewControllerRegistry registry) {

        registry.addViewController("/editNotice").setViewName("/editNotice");
        registry.addViewController("/showNotice").setViewName("/showNotice");
        registry.addViewController("/showSocket").setViewName("/showSocket");
        //registry.addRedirectViewController("/","editNotice");

        registry.addViewController("/").setViewName("/index");

    }

}
